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


Performing analysis on: 4FGL_J0729.1+5703_weekly_bin649
RA = 112.286, Dec = 57.0558
tmin = 631497601, tmax = 632102401
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='46413', job_status='RUN', time_executed='2021-07-11 00:22:13.272420', time_epoch_executed='1625988133.27' WHERE source_name='4FGL J0729.1+5703' and cadence='weekly' and bin_id='649'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/46413

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/46413/ft1_4FGL_J0729.1+5703_weekly_bin649.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/46413/ft2_4FGL_J0729.1+5703_weekly_bin649.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/46413/ft1_4FGL_J0729.1+5703_weekly_bin649.fits outfile=/scratch/kocevski/46413/ft1_filteredMKT_4FGL_J0729.1+5703_weekly_bin649.fits ra=112.286 dec=57.0558 rad=12.0 tmin=631497601.0 tmax=632102401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.45
user 5.17
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/46413/ft2_4FGL_J0729.1+5703_weekly_bin649.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/46413/ft2_4FGL_J0729.1+5703_weekly_bin649.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/46413/ft1_filteredMKT_4FGL_J0729.1+5703_weekly_bin649.fits evtable="EVENTS" outfile="/scratch/kocevski/46413/ft1_filtered_4FGL_J0729.1+5703_weekly_bin649.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.38
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/46413/ft1_filtered_4FGL_J0729.1+5703_weekly_bin649.fits" evtable="EVENTS" scfile=/scratch/kocevski/46413/ft2_4FGL_J0729.1+5703_weekly_bin649.fits sctable="SC_DATA" outfile=/scratch/kocevski/46413/ltcube_631497601_632102401_4FGL_J0729.1+5703_weekly_bin649.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/46413/ft2_4FGL_J0729.1+5703_weekly_bin649.fits
.....................!
real 30.47
user 29.93
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/46413/ft1_filtered_4FGL_J0729.1+5703_weekly_bin649.fits evtable="EVENTS" scfile=/scratch/kocevski/46413/ft2_4FGL_J0729.1+5703_weekly_bin649.fits sctable="SC_DATA" expcube=/scratch/kocevski/46413/ltcube_631497601_632102401_4FGL_J0729.1+5703_weekly_bin649.fits outfile=/scratch/kocevski/46413/expmap_631497601_632102401_4FGL_J0729.1+5703_weekly_bin649.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/46413/ltcube_631497601_632102401_4FGL_J0729.1+5703_weekly_bin649.fits
.....................!
real 190.60
user 185.21
sys 4.75

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

Setting source of interest to:
4FGL J0729.1+5703 @ 112.286 57.0558

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/46413/ft1_filtered_4FGL_J0729.1+5703_weekly_bin649.fits scfile=/scratch/kocevski/46413/ft2_4FGL_J0729.1+5703_weekly_bin649.fits outfile=/scratch/kocevski/46413/cmap_631497601_632102401_4FGL_J0729.1+5703_weekly_bin649.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=112.286 yref=57.0558 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/46413/ft1_filtered_4FGL_J0729.1+5703_weekly_bin649.fits scfile=/scratch/kocevski/46413/ft2_4FGL_J0729.1+5703_weekly_bin649.fits outfile=/scratch/kocevski/46413/cmap_HighResolution_631497601_632102401_4FGL_J0729.1+5703_weekly_bin649.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=112.286 yref=57.0558 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/46413/ft1_filtered_4FGL_J0729.1+5703_weekly_bin649.fits evtable="EVENTS" scfile=/scratch/kocevski/46413/ft2_4FGL_J0729.1+5703_weekly_bin649.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/46413/Model_4FGL_J0729.1+5703_weekly_bin649.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/46413/ft1_filtered_4FGL_J0729.1+5703_weekly_bin649.fits.....................!
real 53.74
user 52.16
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/46413/ft1_filtered_4FGL_J0729.1+5703_weekly_bin649.fits', '/scratch/kocevski/46413/ft2_4FGL_J0729.1+5703_weekly_bin649.fits', expMap='/scratch/kocevski/46413/expmap_631497601_632102401_4FGL_J0729.1+5703_weekly_bin649.fits', expCube='/scratch/kocevski/46413/ltcube_631497601_632102401_4FGL_J0729.1+5703_weekly_bin649.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/46413/Model_4FGL_J0729.1+5703_weekly_bin649.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0729.1+5703'

4FGL J0729.1+5703
   Spectrum: PowerLaw
277    Prefactor:  3.521e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.511e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  8.778e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/46413/ft1_filtered_4FGL_J0729.1+5703_weekly_bin649.fits
Spacecraft file(s): /scratch/kocevski/46413/ft2_4FGL_J0729.1+5703_weekly_bin649.fits
Exposure map: /scratch/kocevski/46413/expmap_631497601_632102401_4FGL_J0729.1+5703_weekly_bin649.fits
Exposure cube: /scratch/kocevski/46413/ltcube_631497601_632102401_4FGL_J0729.1+5703_weekly_bin649.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/46413/Model_4FGL_J0729.1+5703_weekly_bin649.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) = 4155.02858612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10992E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10652E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16017E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.507       1.0000         .10000E-03   10000.    
    13 'Prefactor '    63.274       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .40707E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10528E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.962       1.0000         .10000E-03   10000.    
    17 'norm      '    1.1428       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.4888       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.5716       1.0000         .10000E-03   10000.    
    22 'norm      '    3.9116       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.1122       1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.669       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .14940E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.2433       1.0000         .10000E-03   10000.    
    27 'Prefactor '    40.917       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .87234       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .90494       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4155.024     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     3705 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.775       -.80490E-07** at limit **
   2  Prefactor     .10000E-03    6.8315        .14670E-07** at limit **
   3  Prefactor     .10000E-03    31.561       -.16241E-06** at limit **
   4  Prefactor     .10000E-03    55.943        .73875E-09** at limit **
   5  norm          .10000E-03    7.1453        .68738E-07** at limit **
   6  norm          .10000E-03    26.380        .64753E-06** at limit **
   7  Prefactor     .10000E-03    57.077       -.80925E-06** at limit **
   8  Prefactor     .10000E-03    22.294        .53358E-06** at limit **
   9  Prefactor     .10000E-03    16.950       -.83087E-07** at limit **
  10  Prefactor     .10000E-03    105.58       -.46606E-05** at limit **
  11  norm          .10000E-03    7.7162        .41663E-07** at limit **
  12  Prefactor     17.446        40.352        .50044E-06    .10771E-04
  13  Prefactor     63.272        70.349        .15888E-06    .27098E-04
  14  Prefactor     .10000E-03    149.37        .29039E-06** at limit **
  15  norm          .10000E-03    .71111       -.73556E-06** at limit **
  16  Prefactor     16.974        20.930       -.63798E-06   -.34007E-05
  17  norm          1.1444        5.6915        .21102E-05    .13291E-03
  18  Prefactor     .10000E-03    8.5431        .25657E-07** at limit **
  19  norm          5.4901        4.0240       -.54308E-07    .10037E-03
  20  Prefactor     .10000E-03    15.763        .47504E-07** at limit **
  21  norm          1.5718        4.4149        .81063E-06    .13464E-03
  22  norm          3.9127        2.6013       -.62393E-07    .46959E-04
  23  Prefactor     1.1123        1.0597       -.26113E-07   -.17429E-04
  24  Prefactor     19.668        19.258        .94636E-07    .12514E-04
  25  Prefactor     .10000E-03    7.9575        .34706E-06** at limit **
  26  Prefactor     9.2449        8.0657       -.27467E-07   -.12814E-04
  27  Prefactor     40.935        21.911       -.10138E-06   -.18953E-04
  28  Normalizat    .87183        .27687        .30683E-05    .74788E-04
  29  Prefactor     .90505        .16701       -.16160E-05    .20122E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 17.4461
  Prefactor  = 63.2715
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.9741
  norm       = 1.14441
  Prefactor  = 0.0001
  norm       = 5.49013
  Prefactor  = 0.0001
  norm       = 1.57182
  norm       = 3.91272
  Prefactor  = 1.11229
  Prefactor  = 19.6677
  Prefactor  = 0.000100004
  Prefactor  = 9.24493
  Prefactor  = 40.9353
  Normalizat = 0.87183
  Prefactor  = 0.905054
 **********
 **   18 **HESSE 
 **********

 FCN=   4155.024     FROM HESSE     STATUS=OK           549 CALLS     4254 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.8325        .16456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    31.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    56.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.1735        .16825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    27.542        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    57.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.839        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    107.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.7176        .17489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.446        40.334        .95722E-04   -1.4872    
  13  Prefactor     63.272        70.319        .50447E-04   -1.4115    
  14  Prefactor     .10000E-03    149.56        .21256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .92476        .96350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.974        20.827        .97248E-04   -1.4884    
  17  norm          1.1444        5.7375        .28881E-03   -1.5494    
  18  Prefactor     .10000E-03    8.5463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.4901        4.0351        .99471E-04   -1.5239    
  20  Prefactor     .10000E-03    15.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.5718        4.3960        .21749E-03   -1.5457    
  22  norm          3.9127        2.5977        .81079E-04   -1.5312    
  23  Prefactor     1.1123        1.0746        .61899E-04   -1.5497    
  24  Prefactor     19.668        18.454        .90311E-04   -1.4821    
  25  Prefactor     .10000E-03    21.273        .32707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     9.2449        8.0638        .13182E-03   -1.5100    
  27  Prefactor     40.935        21.851        .62666E-04   -1.4427    
  28  Normalizat    .87183        .31366        .31762E-03   -.97457    
  29  Prefactor     .90505        .18953        .19900E-03   -.95965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72984e-10
Minuit parameter uncertainties:
  1  4.52349e-05
  2  1.32613e-06
  3  8.66369e-05
  4  1.34536e-05
  5  4.65588e-06
  6  3.90054e-05
  7  4.75789e-05
  8  5.57431e-05
  9  3.19226e-05
  10  0.000494664
  11  5.93775e-06
  12  40.3966
  13  70.4116
  14  4.29777e-05
  15  1.5609e-05
  16  20.8359
  17  5.12544
  18  4.08709e-06
  19  4.03529
  20  3.37752e-05
  21  4.39689
  22  2.59773
  23  1.07464
  24  18.4591
  25  0.000573425
  26  8.06476
  27  21.8551
  28  0.314319
  29  0.18967
Done.

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

Extracting fit parameters...

4FGL J0729.1+5703
   Spectrum: PowerLaw
277    Prefactor:  1.745e+01  4.040e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  2.511e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  8.778e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  9.051e-01  1.897e-01  0.000e+00  1.000e+01 ( 1.000e+00)
673        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
674        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
671   Normalization:  8.718e-01  3.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.24
Ra Dec: 112.286 57.056
Photon Flux Upper Limit: 1.90e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.48e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/46413/likelihoodResults_631497601_632102401_4FGL_J0729.1+5703_weekly_bin649.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): 0
logL (Free Index) = 4154.49316906
delta logL = 0.530657579715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4154.47106128
delta logL = 0.552765359609

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5583       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1634       1.0000          .0000       10.000    
     3 'Normalizat'    .80284       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93407       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6750E+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=   4154.471     FROM MIGRAD    STATUS=FAILED        94 CALLS      302 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5541        180.40        .11642E-03   -.11914E-04
   2  Index         4.1641        7.0534        .52219E-02    .33610E-03
   3  Normalizat    .80280        .27928        .32967E-03    .24002E-04
   4  Prefactor     .93412        .17841        .19616E-03   -.45032E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4154.471     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      391 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5541        180.40        .15957E-03   -.11914E-04
   2  Index         4.1641        7.0534        .12652E-02    .33610E-03
   3  Normalizat    .80280        .27928        .18039E-03    .24002E-04
   4  Prefactor     .93412        .17841        .94797E-04   -.45032E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4154.471     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      420 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5540        14.984        .46566E-05   -.28320E-04
   2  Index         4.1641        2.1290        .10444E-02    .27976E-05
   3  Normalizat    .80280        .30118        .13187E-04    .12587E-04
   4  Prefactor     .93413        .18986        .78464E-05   -.25211E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.55405
  Index      = 4.16412
  Normalizat = 0.802801
  Prefactor  = 0.934125
 **********
 **   18 **HESSE 
 **********

 FCN=   4154.471     FROM HESSE     STATUS=OK            23 CALLS      443 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5540        12.612        .93133E-06   -1.5331    
   2  Index         4.1641        1.8550        .41775E-04   -.16797    
   3  Normalizat    .80280        .30171        .26374E-05   -.99965    
   4  Prefactor     .93413        .19022        .15693E-05   -.94959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56864e-11
Minuit parameter uncertainties:
  1  12.6213
  2  1.90184
  3  0.302342
  4  0.190356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/46413': 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) = 4154.47106112
delta logL = 0.55276551763

Extracting fit parameters...

4FGL J0729.1+5703
   Spectrum: PowerLaw
277    Prefactor:  3.554e+00  1.262e+01  1.000e-04  1.000e+04 ( 1.000e-13)
278        Index:  4.164e+00  1.902e+00  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  8.778e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  9.341e-01  1.904e-01  0.000e+00  1.000e+01 ( 1.000e+00)
673        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
674        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
671   Normalization:  8.028e-01  3.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.42
Ra Dec: 112.286 57.056
Photon Index (Free Index): 4.16 +/- 1.90
Photon Flux (Free Index): 9.56e-08 +/- 9.82e-08
Energy Flux (Free Index): 1.40e-05 +/- 1.44e-05

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/46413/cmap_HighResolution_631497601_632102401_4FGL_J0729.1+5703_weekly_bin649.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-02', comment='SUCCESS', energy_flux2='1.40e-05', dlogl='5.53e-01', photon_flux2='9.56e-08', job_status='DONE', time_completed='2021-07-11 00:35:07.752249', photon_index_error2='1.90', photon_index2='4.16', ts='0.24', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.90e-07', energy_flux_error2='1.44e-05', EG='0.87', time_epoch_completed='1625988907.75', return_code='0', job_id='46413', GAL2='0.93', EG2='0.80', return_code2='0', photon_flux_error2='9.82e-08', ts2='1.42', photon_index='2.51' WHERE bin_id='649' AND source_name='4FGL J0729.1+5703' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul 11 00:35:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 46413: <4FGL_J0729.1+5703_weekly_bin649> in cluster <slac> Done

Job <4FGL_J0729.1+5703_weekly_bin649> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Jul 11 00:20:31 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 11 00:22:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul 11 00:22:01 2021
Terminated at Sun Jul 11 00:35:08 2021
Results reported at Sun Jul 11 00:35:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0729.1+5703_weekly_bin649 112.286 57.0558 631497601 632102401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0729.1+5703 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   756.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            877 sec.

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

