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


Performing analysis on: 4FGL_J1033.1+4115_weekly_bin631
RA = 158.275, Dec = 41.262
tmin = 620611201, tmax = 621216001
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='401757', job_status='RUN', time_executed='2021-07-16 23:56:36.027159', time_epoch_executed='1626504996.03' WHERE source_name='4FGL J1033.1+4115' and cadence='weekly' and bin_id='631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/401757

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/401757/ft1_4FGL_J1033.1+4115_weekly_bin631.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/401757/ft2_4FGL_J1033.1+4115_weekly_bin631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/401757/ft1_4FGL_J1033.1+4115_weekly_bin631.fits outfile=/scratch/kocevski/401757/ft1_filteredMKT_4FGL_J1033.1+4115_weekly_bin631.fits ra=158.275 dec=41.262 rad=12.0 tmin=620611201.0 tmax=621216001.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.29
user 6.95
sys 0.30

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/401757/ft2_4FGL_J1033.1+4115_weekly_bin631.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/401757/ft2_4FGL_J1033.1+4115_weekly_bin631.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/401757/ft1_filteredMKT_4FGL_J1033.1+4115_weekly_bin631.fits evtable="EVENTS" outfile="/scratch/kocevski/401757/ft1_filtered_4FGL_J1033.1+4115_weekly_bin631.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.55
user 0.39
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/401757/ft1_filtered_4FGL_J1033.1+4115_weekly_bin631.fits" evtable="EVENTS" scfile=/scratch/kocevski/401757/ft2_4FGL_J1033.1+4115_weekly_bin631.fits sctable="SC_DATA" outfile=/scratch/kocevski/401757/ltcube_620611201_621216001_4FGL_J1033.1+4115_weekly_bin631.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/401757/ft2_4FGL_J1033.1+4115_weekly_bin631.fits
.....................!
real 32.32
user 31.79
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/401757/ft1_filtered_4FGL_J1033.1+4115_weekly_bin631.fits evtable="EVENTS" scfile=/scratch/kocevski/401757/ft2_4FGL_J1033.1+4115_weekly_bin631.fits sctable="SC_DATA" expcube=/scratch/kocevski/401757/ltcube_620611201_621216001_4FGL_J1033.1+4115_weekly_bin631.fits outfile=/scratch/kocevski/401757/expmap_620611201_621216001_4FGL_J1033.1+4115_weekly_bin631.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/401757/ltcube_620611201_621216001_4FGL_J1033.1+4115_weekly_bin631.fits
.....................!
real 192.88
user 186.35
sys 4.81

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 215 point sources and 0 extended sources

Setting source of interest to:
4FGL J1033.1+4115 @ 158.275 41.262

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/401757/ft1_filtered_4FGL_J1033.1+4115_weekly_bin631.fits scfile=/scratch/kocevski/401757/ft2_4FGL_J1033.1+4115_weekly_bin631.fits outfile=/scratch/kocevski/401757/cmap_620611201_621216001_4FGL_J1033.1+4115_weekly_bin631.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=158.275 yref=41.262 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/401757/ft1_filtered_4FGL_J1033.1+4115_weekly_bin631.fits scfile=/scratch/kocevski/401757/ft2_4FGL_J1033.1+4115_weekly_bin631.fits outfile=/scratch/kocevski/401757/cmap_HighResolution_620611201_621216001_4FGL_J1033.1+4115_weekly_bin631.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=158.275 yref=41.262 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.60
user 0.43
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/401757/ft1_filtered_4FGL_J1033.1+4115_weekly_bin631.fits evtable="EVENTS" scfile=/scratch/kocevski/401757/ft2_4FGL_J1033.1+4115_weekly_bin631.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/401757/Model_4FGL_J1033.1+4115_weekly_bin631.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/401757/ft1_filtered_4FGL_J1033.1+4115_weekly_bin631.fits.....................!
real 41.02
user 39.62
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/401757/ft1_filtered_4FGL_J1033.1+4115_weekly_bin631.fits', '/scratch/kocevski/401757/ft2_4FGL_J1033.1+4115_weekly_bin631.fits', expMap='/scratch/kocevski/401757/expmap_620611201_621216001_4FGL_J1033.1+4115_weekly_bin631.fits', expCube='/scratch/kocevski/401757/ltcube_620611201_621216001_4FGL_J1033.1+4115_weekly_bin631.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/401757/Model_4FGL_J1033.1+4115_weekly_bin631.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1033.1+4115'

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  3.495e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  6.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/401757/ft1_filtered_4FGL_J1033.1+4115_weekly_bin631.fits
Spacecraft file(s): /scratch/kocevski/401757/ft2_4FGL_J1033.1+4115_weekly_bin631.fits
Exposure map: /scratch/kocevski/401757/expmap_620611201_621216001_4FGL_J1033.1+4115_weekly_bin631.fits
Exposure cube: /scratch/kocevski/401757/ltcube_620611201_621216001_4FGL_J1033.1+4115_weekly_bin631.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/401757/Model_4FGL_J1033.1+4115_weekly_bin631.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) = 4265.45646596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16008E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    58.361       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.662       1.0000         .10000E-03   10000.    
     5 'norm      '    5.1378       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .71358E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.7258       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.411       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22055       1.0000         .10000E-03   10000.    
    13 'Prefactor '    57.757       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14858E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .37105E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .32472E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .47862       1.0000         .10000E-03   10000.    
    21 'Prefactor '    73.549       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .29699E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    35.671       1.0000         .10000E-03   10000.    
    24 'norm      '    1.1011       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12498E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    12.223       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .99913       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .74223       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4264.930     FROM MIGRAD    STATUS=CONVERGED    823 CALLS     3327 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.2174       -.16863E-07** at limit **
   2  Prefactor     .10000E-03    95.673       -.92544E-06** at limit **
   3  Prefactor     58.105        36.771        .23214E-06    .48245E-04
   4  Prefactor     23.650        13.464        .72171E-06    .57301E-03
   5  norm          5.0735        8.7403        .48610E-05   -.11266E-03
   6  Prefactor     .10000E-03    1.2755       -.92557E-07** at limit **
   7  Prefactor     .10000E-03    2.2602        .37578E-06** at limit **
   8  Prefactor     .10000E-03    15.618        .57389E-06** at limit **
   9  norm          9.7221        3.1510       -.12577E-07   -.59166E-04
  10  Prefactor     .10000E-03    2.3650        .24796E-06** at limit **
  11  norm          10.434        12.514        .87104E-06    .32405E-03
  12  Prefactor     .10004E-03    430.93        .48307E-05** at limit **
  13  Prefactor     56.623        40.278        .20113E-06    .40982E-05
  14  Prefactor     .10000E-03    2.1178        .29287E-06** at limit **
  15  Prefactor     .10000E-03    3.1509        .15969E-06** at limit **
  16  Prefactor     .10000E-03    19.858        .18218E-06** at limit **
  17  Prefactor     .10000E-03    27.060        .84847E-08** at limit **
  18  Prefactor     .10000E-03    36.419       -.11870E-06** at limit **
  19  Prefactor     .10000E-03    61.709       -.44027E-06** at limit **
  20  norm          .47759        .34791        .14915E-07   -.12871E-03
  21  Prefactor     74.665        41.292       -.56486E-06   -.51207E-04
  22  Prefactor     .10000E-03    24.283        .49490E-06** at limit **
  23  Prefactor     30.973        88.687        .28412E-06   -.98401E-05
  24  norm          .10003E-03    35.586        .16430E-05** at limit **
  25  Prefactor     .10000E-03    5.2801        .27350E-06** at limit **
  26  Prefactor     .10000E-03    63.347        .34111E-06** at limit **
  27  norm          12.167        7.0262        .40147E-07   -.12279E-03
  28  Normalizat    .99955        .19584       -.28515E-05   -.73716E-05
  29  Prefactor     .74338        .23621        .18210E-05   -.14787E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 58.1051
  Prefactor  = 23.6505
  norm       = 5.07352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.72214
  Prefactor  = 0.0001
  norm       = 10.4344
  Prefactor  = 0.000100043
  Prefactor  = 56.6232
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.47759
  Prefactor  = 74.6646
  Prefactor  = 0.0001
  Prefactor  = 30.9726
  norm       = 0.00010003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.1669
  Normalizat = 0.999551
  Prefactor  = 0.743382
 **********
 **   18 **HESSE 
 **********

 FCN=   4264.930     FROM HESSE     STATUS=OK           543 CALLS     3870 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.2279        .17133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    97.177        .18206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     58.105        36.932        .52515E-04   -1.4182    
   4  Prefactor     23.650        13.496        .82347E-04   -1.4735    
   5  norm          5.0735        8.7589        .88684E-03   -1.5257    
   6  Prefactor     .10000E-03    1.2804        .72021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.2880        .95827E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.638        .20969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.7221        3.1522        .63703E-04   -1.5084    
  10  Prefactor     .10000E-03    2.3868        .98054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.434        12.521        .12418E-03   -1.5062    
  12  Prefactor     .10004E-03    439.25        .20142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     56.623        40.263        .52788E-04   -1.4202    
  14  Prefactor     .10000E-03    2.1430        .92745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.1595        .11315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.874        .20478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    27.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    36.479        .19586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    61.751        .19741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .47759        .35326        .31547E-04   -1.5570    
  21  Prefactor     74.665        38.510        .46815E-04   -1.3978    
  22  Prefactor     .10000E-03    24.364        .19839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     30.973        88.728        .67100E-04   -1.4594    
  24  norm          .10003E-03    192.87        .69877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    15.857        .28324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    63.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          12.167        6.8565        .11458E-03   -1.5010    
  28  Normalizat    .99955        .22839        .21638E-03   -.93045    
  29  Prefactor     .74338        .27600        .31256E-03   -1.0185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.18411e-10
Minuit parameter uncertainties:
  1  2.50234e-06
  2  0.000640678
  3  36.9465
  4  13.4975
  5  8.76112
  6  5.30825e-07
  7  1.21592e-06
  8  1.16988e-06
  9  3.15226
  10  1.43038e-06
  11  12.5241
  12  0.00877461
  13  40.2826
  14  1.67954e-07
  15  2.05703e-06
  16  6.68141e-06
  17  3.92464e-05
  18  6.63408e-05
  19  0.000281827
  20  0.353266
  21  38.523
  22  3.05183e-05
  23  89.1092
  24  0.00481646
  25  0.000102446
  26  0.000258586
  27  6.85692
  28  0.228609
  29  0.276509
Done.

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

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  1.680e-07  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
341        Scale:  6.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  7.434e-01  2.765e-01  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  9.996e-01  2.286e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 158.275 41.262
Photon Flux Upper Limit: 6.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/401757/likelihoodResults_620611201_621216001_4FGL_J1033.1+4115_weekly_bin631.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) = 4264.93225936
delta logL = -0.00221140037502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4264.93004797
delta logL = -1.28766259877e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4050       1.0000          .0000       10.000    
     3 'Normalizat'    .99957       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74339       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4264.930     FROM MIGRAD    STATUS=FAILED        87 CALLS      238 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10061E-03    122.97        .92955E-03** at limit **
   2  Index         2.3445        5.9253        .50000        .21840E-04
   3  Normalizat    .99955        .36342E-01    .21638E-03    .42032E-06
   4  Prefactor     .74339        .46077E-01    .31256E-03    .30553E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4264.930     FROM SIMPLEX   STATUS=UNCHANGED    140 CALLS      378 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10061E-03    122.97        .29764E-03** at limit **
   2  Index         2.3445        5.9253        .50170E-04    .21840E-04
   3  Normalizat    .99955        .36342E-01    .72361E-06    .42032E-06
   4  Prefactor     .74339        .46077E-01    .85873E-06    .30553E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4264.930     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      418 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    524.64        .18591E-03** at limit **
   2  Index         2.1796        8.8527        .50000       -.41018E-07
   3  Normalizat    .99955        .16735        .86554E-05    .10508E-04
   4  Prefactor     .74339        .21190        .12502E-04    .11821E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.17962
  Normalizat = 0.999549
  Prefactor  = 0.743386
 **********
 **   18 **HESSE 
 **********

 FCN=   4264.930     FROM HESSE     STATUS=OK            29 CALLS      447 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3335        .37182E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1796        8.5364        .50000       -.59931    
   3  Normalizat    .99955        .21658        .17311E-05   -.93046    
   4  Prefactor     .74339        .27424        .25005E-05   -1.0185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73152e-12
Minuit parameter uncertainties:
  1  1.88426e-06
  2  97.0905
  3  0.21677
  4  0.274745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/401757': 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) = 4264.93004712
delta logL = 8.44177520776e-07

Extracting fit parameters...

4FGL J1033.1+4115
   Spectrum: PowerLaw
339    Prefactor:  1.000e-04  1.884e-06  1.000e-04  1.000e+04 ( 1.000e-12)
340        Index:  2.180e+00  9.709e+01  0.000e+00  1.000e+01 (-1.000e+00)
341        Scale:  6.847e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  7.434e-01  2.747e-01  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  9.995e-01  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 158.275 41.262

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/401757/cmap_HighResolution_620611201_621216001_4FGL_J1033.1+4115_weekly_bin631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.81e-03', job_status='DONE', photon_flux_upper_limit='6.22e-08', time_completed='2021-07-17 00:09:49.922004', job_id='401757', GAL2='0.74', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1626505789.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='8.44e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='631' AND source_name='4FGL J1033.1+4115' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul 17 00:09:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 401757: <4FGL_J1033.1+4115_weekly_bin631> in cluster <slac> Done

Job <4FGL_J1033.1+4115_weekly_bin631> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Jul 16 23:55:20 2021
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 16 23:56:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 16 23:56:20 2021
Terminated at Sat Jul 17 00:09:51 2021
Results reported at Sat Jul 17 00:09:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1033.1+4115_weekly_bin631 158.275 41.262 620611201 621216001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1033.1+4115 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   773.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             312.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            871 sec.

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

