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/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 81 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 = 17082
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1135.1+3014_weekly_bin173
RA = 173.788, Dec = 30.2344
tmin = 343612801, tmax = 344217601
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='912686', job_status='RUN', time_executed='2021-07-18 16:56:54.206060', time_epoch_executed='1626652614.21' WHERE source_name='4FGL J1135.1+3014' and cadence='weekly' and bin_id='173'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/912686

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/912686/ft1_4FGL_J1135.1+3014_weekly_bin173.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/912686/ft2_4FGL_J1135.1+3014_weekly_bin173.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/912686/ft1_4FGL_J1135.1+3014_weekly_bin173.fits outfile=/scratch/kocevski/912686/ft1_filteredMKT_4FGL_J1135.1+3014_weekly_bin173.fits ra=173.788 dec=30.2344 rad=12.0 tmin=343612801.0 tmax=344217601.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 8.25
user 7.06
sys 0.49

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/912686/ft2_4FGL_J1135.1+3014_weekly_bin173.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/912686/ft2_4FGL_J1135.1+3014_weekly_bin173.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/912686/ft1_filteredMKT_4FGL_J1135.1+3014_weekly_bin173.fits evtable="EVENTS" outfile="/scratch/kocevski/912686/ft1_filtered_4FGL_J1135.1+3014_weekly_bin173.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.77
user 0.42
sys 0.34

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/912686/ft1_filtered_4FGL_J1135.1+3014_weekly_bin173.fits" evtable="EVENTS" scfile=/scratch/kocevski/912686/ft2_4FGL_J1135.1+3014_weekly_bin173.fits sctable="SC_DATA" outfile=/scratch/kocevski/912686/ltcube_343612801_344217601_4FGL_J1135.1+3014_weekly_bin173.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/912686/ft2_4FGL_J1135.1+3014_weekly_bin173.fits
.....................!
real 39.55
user 38.55
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/912686/ft1_filtered_4FGL_J1135.1+3014_weekly_bin173.fits evtable="EVENTS" scfile=/scratch/kocevski/912686/ft2_4FGL_J1135.1+3014_weekly_bin173.fits sctable="SC_DATA" expcube=/scratch/kocevski/912686/ltcube_343612801_344217601_4FGL_J1135.1+3014_weekly_bin173.fits outfile=/scratch/kocevski/912686/expmap_343612801_344217601_4FGL_J1135.1+3014_weekly_bin173.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/912686/ltcube_343612801_344217601_4FGL_J1135.1+3014_weekly_bin173.fits
.....................!
real 191.88
user 186.32
sys 5.04

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

Setting source of interest to:
4FGL J1135.1+3014 @ 173.788 30.2344

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/912686/ft1_filtered_4FGL_J1135.1+3014_weekly_bin173.fits scfile=/scratch/kocevski/912686/ft2_4FGL_J1135.1+3014_weekly_bin173.fits outfile=/scratch/kocevski/912686/cmap_343612801_344217601_4FGL_J1135.1+3014_weekly_bin173.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=173.788 yref=30.2344 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.79
user 0.43
sys 0.35

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/912686/ft1_filtered_4FGL_J1135.1+3014_weekly_bin173.fits scfile=/scratch/kocevski/912686/ft2_4FGL_J1135.1+3014_weekly_bin173.fits outfile=/scratch/kocevski/912686/cmap_HighResolution_343612801_344217601_4FGL_J1135.1+3014_weekly_bin173.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=173.788 yref=30.2344 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.79
user 0.43
sys 0.35

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/912686/ft1_filtered_4FGL_J1135.1+3014_weekly_bin173.fits evtable="EVENTS" scfile=/scratch/kocevski/912686/ft2_4FGL_J1135.1+3014_weekly_bin173.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/912686/Model_4FGL_J1135.1+3014_weekly_bin173.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/912686/ft1_filtered_4FGL_J1135.1+3014_weekly_bin173.fits.....................!
real 130.60
user 128.79
sys 1.45

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/912686/ft1_filtered_4FGL_J1135.1+3014_weekly_bin173.fits', '/scratch/kocevski/912686/ft2_4FGL_J1135.1+3014_weekly_bin173.fits', expMap='/scratch/kocevski/912686/expmap_343612801_344217601_4FGL_J1135.1+3014_weekly_bin173.fits', expCube='/scratch/kocevski/912686/ltcube_343612801_344217601_4FGL_J1135.1+3014_weekly_bin173.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/912686/Model_4FGL_J1135.1+3014_weekly_bin173.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1135.1+3014'

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  2.132e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.376e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.179e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/912686/ft1_filtered_4FGL_J1135.1+3014_weekly_bin173.fits
Spacecraft file(s): /scratch/kocevski/912686/ft2_4FGL_J1135.1+3014_weekly_bin173.fits
Exposure map: /scratch/kocevski/912686/expmap_343612801_344217601_4FGL_J1135.1+3014_weekly_bin173.fits
Exposure cube: /scratch/kocevski/912686/ltcube_343612801_344217601_4FGL_J1135.1+3014_weekly_bin173.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/912686/Model_4FGL_J1135.1+3014_weekly_bin173.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) = 16914.3155716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51833       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1167       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2270       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .32393       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14561E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.1857       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.8559       1.0000         .10000E-03   10000.    
     9 'norm      '    .10365E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.4072       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.215       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6988       1.0000         .10000E-03   10000.    
    14 'norm      '    1.8443       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .33622       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.5640       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.7104       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.629       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5693       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.756       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.6594       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.1118       1.0000         .10000E-03   10000.    
    26 'Prefactor '    18.756       1.0000         .10000E-03   10000.    
    27 'norm      '    4.4433       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    1.7830       1.0000         .10000E-03   10000.    
    30 'Prefactor '    2.3416       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .76830       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2315       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6210E+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=   16914.18     FROM MIGRAD    STATUS=FAILED      1545 CALLS     5160 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51374        30.714        .58311E-02    .34957E-02
   2  Prefactor     .10000E-03    8.0213        .18142E-02** at limit **
   3  norm          1.1168        .19678        .22778E-04   -.11140E-02
   4  Prefactor     5.2267        2.0316        .10884E-03   -.17840E-03
   5  Prefactor     .30995        20.690        .39122E-02   -.48813E-03
   6  Prefactor     .10001E-03    3.0945        .82440E-01** at limit **
   7  norm          1.1880        10.327        .41905E-03   -.25448E-03
   8  Prefactor     6.8560        3.5334        .15323E-03   -.62916E-04
   9  norm          .10026E-03    3.1317        .66012E-01** at limit **
  10  Prefactor     .10000E-03    1.4635        .15351E-02** at limit **
  11  Prefactor     6.4080        2.3458        .96434E-04   -.65217E-03
  12  Prefactor     12.209        24.605        .11461E-03   -.67450E-04
  13  Prefactor     1.6965        3.8469        .32278E-03   -.26825E-03
  14  norm          1.8441        1.5481        .13612E-03   -.72163E-04
  15  Prefactor     .36575        20.173        .37219E-02    .17494E-03
  16  Prefactor     8.5624        4.3500        .13698E-03   -.13744E-03
  17  Prefactor     .10000E-03    13.221        .18142E-02** at limit **
  18  norm          4.7104        .91478        .52000E-04    .52559E-03
  19  Prefactor     .10000E-03    13.093        .18142E-02** at limit **
  20  Prefactor     13.630        10.068        .10850E-03   -.38141E-04
  21  Prefactor     1.5696        1.1749        .11602E-03   -.40292E-03
  22  Prefactor     10.753        18.462        .12216E-03   -.55092E-04
  23  Prefactor     .10000E-03    17.588        .18142E-02** at limit **
  24  norm          1.6593        .69713        .67377E-04   -.27739E-03
  25  Prefactor     6.1120        3.3006        .16240E-03   -.33883E-03
  26  Prefactor     18.756        17.336        .92481E-04   -.98344E-05
  27  norm          4.4433        1.7291        .99413E-04   -.60381E-04
  28  Prefactor     .10000E-03    1.7745        .16842E-02** at limit **
  29  Prefactor     1.7830        1.0905        .31338E-04   -.18864E-04
  30  Prefactor     2.3417        1.2745        .10366E-03   -.15311E-03
  31  Normalizat    .76836        .14032        .29251E-03   -.23304E-03
  32  Prefactor     1.2313        .15194        .27322E-03   -.21471E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   16914.18     FROM SIMPLEX   STATUS=UNCHANGED   1483 CALLS     6643 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51374        30.714        .71901E-05   -1.5565    
   2  Prefactor     .10000E-03    8.0213        .42398E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1168        .19678        .31118E-09   -1.5497    
   4  Prefactor     5.2267        2.0316        .31239E-09   -1.5251    
   5  Prefactor     .30995        20.690        .15989E-06   -1.5597    
   6  Prefactor     .10001E-03    3.0945        .30979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1880        10.327        .68734E-07   -1.5490    
   8  Prefactor     6.8560        3.5334        .81951E-08   -1.5184    
   9  norm          .10026E-03    3.1317        .37052E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.4635        .21086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.4080        2.3458        .43658E-09   -1.5202    
  12  Prefactor     12.209        24.605        .37364E-07   -1.5009    
  13  Prefactor     1.6965        3.8469        .18114E-07   -1.5447    
  14  norm          1.8441        1.5481        .76088E-08   -1.5436    
  15  Prefactor     .36575        20.173        .15560E-06   -1.5587    
  16  Prefactor     8.5624        4.3500        .44339E-08   -1.5123    
  17  Prefactor     .10000E-03    13.221        .31588E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.7104        .91478        .14927E-08   -1.5274    
  19  Prefactor     .10000E-03    13.093        .35388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.630        10.068        .53971E-08   -1.4969    
  21  Prefactor     1.5696        1.1749        .98813E-09   -1.5457    
  22  Prefactor     10.753        18.462        .37787E-07   -1.5052    
  23  Prefactor     .10000E-03    17.588        .41480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.6593        .69713        .52827E-08   -1.5450    
  25  Prefactor     6.1120        3.3006        .34599E-07   -1.5213    
  26  Prefactor     18.756        17.336        .10110E-06   -1.4842    
  27  norm          4.4433        1.7291        .15744E-07   -1.5286    
  28  Prefactor     .10000E-03    1.7745        .18598E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.7830        1.0905        .80972E-09   -1.5441    
  30  Prefactor     2.3417        1.2745        .23768E-08   -1.5402    
  31  Normalizat    .76836        .14032        .13206E-07   -1.0125    
  32  Prefactor     1.2313        .15194        .27742E-08   -.85373    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   16914.18     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     7298 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51380        31.280        .11662E-02    .11581E-04
   2  Prefactor     .10000E-03    8.0269        .36285E-03** at limit **
   3  norm          1.1168        .19623        .91113E-06    .99450E-03
   4  Prefactor     5.2267        2.0313        .43537E-05    .21934E-03
   5  Prefactor     .31026        20.476        .15649E-03    .10055E-03
   6  Prefactor     .10000E-03    3.0665        .82956E-01** at limit **
   7  norm          1.1881        10.208        .16762E-04    .20076E-04
   8  Prefactor     6.8560        3.5332        .61292E-05    .40064E-04
   9  norm          .10022E-03    2.9327        .69709E-01** at limit **
  10  Prefactor     .10000E-03    1.4636        .30701E-03** at limit **
  11  Prefactor     6.4080        2.3451        .38574E-05    .12732E-03
  12  Prefactor     12.209        24.602        .45846E-05    .11903E-04
  13  Prefactor     1.6965        3.8386        .12911E-04    .54945E-04
  14  norm          1.8441        1.5477        .54446E-05    .33409E-04
  15  Prefactor     .36572        20.243        .14888E-03    .18327E-05
  16  Prefactor     8.5624        4.3477        .54792E-05    .53117E-04
  17  Prefactor     .10000E-03    13.222        .36285E-03** at limit **
  18  norm          4.7104        .91462        .20800E-05   -.43726E-04
  19  Prefactor     .10000E-03    13.103        .36285E-03** at limit **
  20  Prefactor     13.630        10.066        .43398E-05    .18861E-04
  21  Prefactor     1.5696        1.1745        .46410E-05    .16658E-03
  22  Prefactor     10.753        18.450        .48866E-05    .14890E-04
  23  Prefactor     .10000E-03    17.589        .36285E-03** at limit **
  24  norm          1.6593        .69706        .26951E-05    .94490E-04
  25  Prefactor     6.1120        3.3001        .64959E-05    .63005E-04
  26  Prefactor     18.756        17.333        .36992E-05    .49172E-05
  27  norm          4.4433        1.7291        .39765E-05    .13723E-04
  28  Prefactor     .10000E-03    1.7750        .33684E-03** at limit **
  29  Prefactor     1.7830        1.0905        .12535E-05    .49410E-05
  30  Prefactor     2.3417        1.2744        .41462E-05    .26323E-04
  31  Normalizat    .76836        .14044        .11700E-04    .22775E-03
  32  Prefactor     1.2313        .15192        .10929E-04    .21304E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.513799
  Prefactor  = 0.0001
  norm       = 1.11681
  Prefactor  = 5.22667
  Prefactor  = 0.310259
  Prefactor  = 0.000100005
  norm       = 1.18808
  Prefactor  = 6.85597
  norm       = 0.000100216
  Prefactor  = 0.0001
  Prefactor  = 6.40797
  Prefactor  = 12.2087
  Prefactor  = 1.69653
  norm       = 1.84406
  Prefactor  = 0.365716
  Prefactor  = 8.56239
  Prefactor  = 0.0001
  norm       = 4.71042
  Prefactor  = 0.0001
  Prefactor  = 13.6299
  Prefactor  = 1.56963
  Prefactor  = 10.7526
  Prefactor  = 0.0001
  norm       = 1.65935
  Prefactor  = 6.11199
  Prefactor  = 18.756
  norm       = 4.44334
  Prefactor  = 0.0001
  Prefactor  = 1.78301
  Prefactor  = 2.34171
  Normalizat = 0.768363
  Prefactor  = 1.23132
 **********
 **   18 **HESSE 
 **********

 FCN=   16914.18     FROM HESSE     STATUS=OK           647 CALLS     7945 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51380        31.274        .46649E-04   -1.5565    
   2  Prefactor     .10000E-03    8.0272        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1168        .19619        .36947E-06   -1.5497    
   4  Prefactor     5.2267        2.0307        .87075E-06   -1.5251    
   5  Prefactor     .31026        20.442        .62595E-05   -1.5597    
   6  Prefactor     .10000E-03    3.0669        .82921E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1881        10.184        .33524E-05   -1.5490    
   8  Prefactor     6.8560        3.5336        .12258E-05   -1.5184    
   9  norm          .10022E-03    2.9680        .69011E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.4636        .61402E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.4080        2.3466        .77147E-06   -1.5202    
  12  Prefactor     12.209        24.741        .91692E-06   -1.5009    
  13  Prefactor     1.6965        3.8383        .25822E-05   -1.5447    
  14  norm          1.8441        1.5487        .10889E-05   -1.5436    
  15  Prefactor     .36572        20.217        .59550E-05   -1.5587    
  16  Prefactor     8.5624        4.3490        .10958E-05   -1.5123    
  17  Prefactor     .10000E-03    13.222        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.7104        .91450        .41600E-06   -1.5274    
  19  Prefactor     .10000E-03    13.104        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.630        10.087        .86797E-06   -1.4969    
  21  Prefactor     1.5696        1.1746        .92820E-06   -1.5457    
  22  Prefactor     10.753        18.573        .97732E-06   -1.5052    
  23  Prefactor     .10000E-03    17.589        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.6593        .69684        .53902E-06   -1.5450    
  25  Prefactor     6.1120        3.2995        .12992E-05   -1.5213    
  26  Prefactor     18.756        17.404        .73985E-06   -1.4842    
  27  norm          4.4433        1.7290        .79531E-06   -1.5286    
  28  Prefactor     .10000E-03    1.7750        .67367E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1.7830        1.0899        .36814E-06   -1.5441    
  30  Prefactor     2.3417        1.2740        .82925E-06   -1.5402    
  31  Normalizat    .76836        .14038        .23401E-05   -1.0125    
  32  Prefactor     1.2313        .15173        .21858E-05   -.85373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72935e-10
Minuit parameter uncertainties:
  1  8.02079
  2  4.21203e-06
  3  0.19619
  4  2.03074
  5  5.03778
  6  0.000235702
  7  6.95827
  8  3.53373
  9  0.00160255
  10  3.58359e-07
  11  2.34668
  12  24.7618
  13  3.8389
  14  1.54876
  15  5.43939
  16  4.34917
  17  2.87791e-06
  18  0.914505
  19  3.51603e-06
  20  10.0886
  21  1.17462
  22  18.5829
  23  1.76906e-05
  24  0.69684
  25  3.29959
  26  17.4091
  27  1.72906
  28  3.69533e-07
  29  1.0899
  30  1.27403
  31  0.14045
  32  0.151785
Done.

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

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  3.657e-01  5.439e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  2.376e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
298        Scale:  1.179e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  1.231e+00  1.518e-01  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
617   Normalization:  7.684e-01  1.405e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 173.788 30.234
Photon Flux Upper Limit: 3.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/912686/likelihoodResults_343612801_344217601_4FGL_J1135.1+3014_weekly_bin173.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) = 16914.1531253
delta logL = 0.0253674892665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16914.030238
delta logL = 0.148254833901

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1008       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7143       1.0000          .0000       10.000    
     3 'Normalizat'    .77221       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2230       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6210E+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=   16914.03     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      281 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1016        8.1592        .19908E-03    .22386E-04
   2  Index         1.7143        .75699        .18688E-01   -.17012E-03
   3  Normalizat    .77221        .12897        .29184E-03   -.29606E-04
   4  Prefactor     1.2229        .15025        .27403E-03   -.13939E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.10163
  Index      = 1.7143
  Normalizat = 0.772213
  Prefactor  = 1.22295
 **********
 **   18 **HESSE 
 **********

 FCN=   16914.03     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1016        8.1228        .79631E-05   -1.5303    
   2  Index         1.7143        .75452        .37377E-02   -.71702    
   3  Normalizat    .77221        .12907        .11674E-04   -1.0111    
   4  Prefactor     1.2229        .15036        .10961E-04   -.85628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19346e-12
Minuit parameter uncertainties:
  1  8.12499
  2  0.759656
  3  0.129124
  4  0.150417
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/912686': 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) = 16914.030238
delta logL = 0.148254847572

Extracting fit parameters...

4FGL J1135.1+3014
   Spectrum: PowerLaw
296    Prefactor:  4.102e+00  8.125e+00  1.000e-04  1.000e+04 ( 1.000e-13)
297        Index:  1.714e+00  7.597e-01  0.000e+00  1.000e+01 (-1.000e+00)
298        Scale:  1.179e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  1.223e+00  1.504e-01  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
617   Normalization:  7.722e-01  1.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 173.788 30.234

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/912686/cmap_HighResolution_343612801_344217601_4FGL_J1135.1+3014_weekly_bin173.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.84e-03', job_status='DONE', photon_flux_upper_limit='3.68e-08', time_completed='2021-07-18 17:45:01.082055', job_id='912686', GAL2='1.22', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1626655501.08', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='1.48e-01', ts2='0.31', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='173' AND source_name='4FGL J1135.1+3014' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul 18 17:45:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 912686: <4FGL_J1135.1+3014_weekly_bin173> in cluster <slac> Done

Job <4FGL_J1135.1+3014_weekly_bin173> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Jul 18 06:06:01 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 18 06:09:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul 18 06:09:14 2021
Terminated at Sun Jul 18 17:45:02 2021
Results reported at Sun Jul 18 17:45:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1135.1+3014_weekly_bin173 173.788 30.2344 343612801 344217601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1135.1+3014 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2904.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             67.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   41747 sec.
    Turnaround time :                            41941 sec.

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

