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


Performing analysis on: 4FGL_J1104.4+0730_weekly_bin337
RA = 166.117, Dec = 7.51
tmin = 442800001, tmax = 443404801
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='686007', job_status='RUN', time_executed='2021-07-17 16:48:14.976449', time_epoch_executed='1626565694.98' WHERE source_name='4FGL J1104.4+0730' and cadence='weekly' and bin_id='337'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/686007

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/686007/ft1_4FGL_J1104.4+0730_weekly_bin337.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/686007/ft2_4FGL_J1104.4+0730_weekly_bin337.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/686007/ft1_4FGL_J1104.4+0730_weekly_bin337.fits outfile=/scratch/kocevski/686007/ft1_filteredMKT_4FGL_J1104.4+0730_weekly_bin337.fits ra=166.117 dec=7.51 rad=12.0 tmin=442800001.0 tmax=443404801.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.97
user 7.62
sys 0.30

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/686007/ft2_4FGL_J1104.4+0730_weekly_bin337.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/686007/ft2_4FGL_J1104.4+0730_weekly_bin337.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/686007/ft1_filteredMKT_4FGL_J1104.4+0730_weekly_bin337.fits evtable="EVENTS" outfile="/scratch/kocevski/686007/ft1_filtered_4FGL_J1104.4+0730_weekly_bin337.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.56
user 0.40
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/686007/ft1_filtered_4FGL_J1104.4+0730_weekly_bin337.fits" evtable="EVENTS" scfile=/scratch/kocevski/686007/ft2_4FGL_J1104.4+0730_weekly_bin337.fits sctable="SC_DATA" outfile=/scratch/kocevski/686007/ltcube_442800001_443404801_4FGL_J1104.4+0730_weekly_bin337.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/686007/ft2_4FGL_J1104.4+0730_weekly_bin337.fits
.....................!
real 31.73
user 31.16
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/686007/ft1_filtered_4FGL_J1104.4+0730_weekly_bin337.fits evtable="EVENTS" scfile=/scratch/kocevski/686007/ft2_4FGL_J1104.4+0730_weekly_bin337.fits sctable="SC_DATA" expcube=/scratch/kocevski/686007/ltcube_442800001_443404801_4FGL_J1104.4+0730_weekly_bin337.fits outfile=/scratch/kocevski/686007/expmap_442800001_443404801_4FGL_J1104.4+0730_weekly_bin337.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/686007/ltcube_442800001_443404801_4FGL_J1104.4+0730_weekly_bin337.fits
.....................!
real 191.16
user 186.18
sys 4.40

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

Setting source of interest to:
4FGL J1104.4+0730 @ 166.117 7.51

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/686007/ft1_filtered_4FGL_J1104.4+0730_weekly_bin337.fits scfile=/scratch/kocevski/686007/ft2_4FGL_J1104.4+0730_weekly_bin337.fits outfile=/scratch/kocevski/686007/cmap_442800001_443404801_4FGL_J1104.4+0730_weekly_bin337.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=166.117 yref=7.51 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.59
user 0.43
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/686007/ft1_filtered_4FGL_J1104.4+0730_weekly_bin337.fits scfile=/scratch/kocevski/686007/ft2_4FGL_J1104.4+0730_weekly_bin337.fits outfile=/scratch/kocevski/686007/cmap_HighResolution_442800001_443404801_4FGL_J1104.4+0730_weekly_bin337.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=166.117 yref=7.51 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.59
user 0.42
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/686007/ft1_filtered_4FGL_J1104.4+0730_weekly_bin337.fits evtable="EVENTS" scfile=/scratch/kocevski/686007/ft2_4FGL_J1104.4+0730_weekly_bin337.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/686007/Model_4FGL_J1104.4+0730_weekly_bin337.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/686007/ft1_filtered_4FGL_J1104.4+0730_weekly_bin337.fits.....................!
real 110.04
user 108.51
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/686007/ft1_filtered_4FGL_J1104.4+0730_weekly_bin337.fits', '/scratch/kocevski/686007/ft2_4FGL_J1104.4+0730_weekly_bin337.fits', expMap='/scratch/kocevski/686007/expmap_442800001_443404801_4FGL_J1104.4+0730_weekly_bin337.fits', expCube='/scratch/kocevski/686007/ltcube_442800001_443404801_4FGL_J1104.4+0730_weekly_bin337.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/686007/Model_4FGL_J1104.4+0730_weekly_bin337.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1104.4+0730'

4FGL J1104.4+0730
   Spectrum: PowerLaw
262    Prefactor:  5.865e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.342e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  1.054e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/686007/ft1_filtered_4FGL_J1104.4+0730_weekly_bin337.fits
Spacecraft file(s): /scratch/kocevski/686007/ft2_4FGL_J1104.4+0730_weekly_bin337.fits
Exposure map: /scratch/kocevski/686007/expmap_442800001_443404801_4FGL_J1104.4+0730_weekly_bin337.fits
Exposure cube: /scratch/kocevski/686007/ltcube_442800001_443404801_4FGL_J1104.4+0730_weekly_bin337.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/686007/Model_4FGL_J1104.4+0730_weekly_bin337.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) = 12980.6225984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.043       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0625       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1089       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4915       1.0000         .10000E-03   10000.    
     7 'norm      '    1.4328       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .56495E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    6.4718       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .13884E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5093       1.0000         .10000E-03   10000.    
    14 'Normalizat'    .88210       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.1641       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12980.56     FROM MIGRAD    STATUS=CONVERGED    300 CALLS     1393 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.051        39.057        .32179E-05    .11272E-03
   2  Prefactor     .10000E-03    11.975       -.18948E-07** at limit **
   3  Prefactor     .10000E-03    2.9769        .32903E-07** at limit **
   4  Prefactor     4.0627        1.8836        .37388E-07   -.44056E-04
   5  Prefactor     1.1091        3.0265        .14813E-05   -.38526E-03
   6  Prefactor     9.4939        4.8885       -.35204E-06   -.63647E-03
   7  norm          1.4340        .47106        .34283E-07    .38091E-03
   8  Prefactor     .10001E-03    3.6809       -.12717E-06** at limit **
   9  norm          6.4717        1.2462       -.16489E-07   -.25035E-03
  10  Prefactor     .10000E-03    6.1615       -.87991E-07** at limit **
  11  norm          .10000E-03    7.2813        .15744E-06** at limit **
  12  Prefactor     .10000E-03    18.354        .11065E-06** at limit **
  13  Prefactor     5.5094        1.8808        .27627E-07   -.44822E-04
  14  Normalizat    .88206        .13060       -.45567E-06   -.26965E-04
  15  Prefactor     1.1641        .11448        .93529E-07   -.70787E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.0513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.0627
  Prefactor  = 1.10914
  Prefactor  = 9.4939
  norm       = 1.43398
  Prefactor  = 0.00010001
  norm       = 6.47168
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.50943
  Normalizat = 0.882056
  Prefactor  = 1.16415
 **********
 **   18 **HESSE 
 **********

 FCN=   12980.56     FROM HESSE     STATUS=OK           194 CALLS     1587 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.051        40.817        .99994E-04   -1.4906    
   2  Prefactor     .10000E-03    11.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.9784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0627        1.8819        .10205E-03   -1.5305    
   5  Prefactor     1.1091        3.1859        .32999E-03   -1.5497    
   6  Prefactor     9.4939        5.0875        .13008E-03   -1.5092    
   7  norm          1.4340        .48116        .38809E-04   -1.5468    
   8  Prefactor     .10001E-03    5.0073        .59199E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.4717        1.2518        .52939E-04   -1.5199    
  10  Prefactor     .10000E-03    6.1924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.5929        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    18.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.5094        1.8815        .87749E-04   -1.5238    
  14  Normalizat    .88206        .15390        .28417E-03   -.97094    
  15  Prefactor     1.1641        .13541        .22980E-03   -.87442    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0833e-10
Minuit parameter uncertainties:
  1  40.8879
  2  2.7705e-05
  3  3.56385e-06
  4  1.88191
  5  3.18643
  6  5.08772
  7  0.481159
  8  0.000443374
  9  1.2518
  10  3.32348e-06
  11  1.61619e-05
  12  2.24606e-05
  13  1.88156
  14  0.153977
  15  0.135447
Done.

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

Extracting fit parameters...

4FGL J1104.4+0730
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  3.323e-06  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.342e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  1.054e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.164e+00  1.354e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  8.821e-01  1.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 166.117 7.510
Photon Flux Upper Limit: 4.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/686007/likelihoodResults_442800001_443404801_4FGL_J1104.4+0730_weekly_bin337.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) = 12980.5607366
delta logL = -0.000769618409322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12980.5599711
delta logL = -4.14943133364e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3200       1.0000          .0000       10.000    
     3 'Normalizat'    .88191       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1641       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+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=   12980.56     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      250 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10186E-03    74.689        .18142E-02** at limit **
   2  Index         2.2494        6.1063        .50000        .23180E-04
   3  Normalizat    .88206        .10881E-01    .28417E-03    .11210E-03
   4  Prefactor     1.1641        .10018E-01    .22980E-03    .13842E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101861
  Index      = 2.24943
  Normalizat = 0.882056
  Prefactor  = 1.16415
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10186E-03    310.88        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2494        5.8741        .50000       -.58250    
   3  Normalizat    .88206        .23239E-01    .11367E-04   -.97094    
   4  Prefactor     1.1641        .21394E-01    .91919E-05   -.87442    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.91807e-08
Minuit parameter uncertainties:
  1  0.0483536
  2  654.289
  3  0.0232391
  4  0.0213943
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/686007': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12980.5599665
delta logL = 4.49017534265e-07

Extracting fit parameters...

4FGL J1104.4+0730
   Spectrum: PowerLaw
262    Prefactor:  1.019e-04  4.835e-02  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.249e+00  6.543e+02  0.000e+00  1.000e+01 (-1.000e+00)
264        Scale:  1.054e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.164e+00  2.139e-02  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  8.821e-01  2.324e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 166.117 7.510

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/686007/cmap_HighResolution_442800001_443404801_4FGL_J1104.4+0730_weekly_bin337.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.08e-03', job_status='DONE', photon_flux_upper_limit='4.00e-08', time_completed='2021-07-17 17:02:27.079233', job_id='686007', GAL2='1.16', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1626566547.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='4.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='337' AND source_name='4FGL J1104.4+0730' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul 17 17:02:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 686007: <4FGL_J1104.4+0730_weekly_bin337> in cluster <slac> Done

Job <4FGL_J1104.4+0730_weekly_bin337> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Jul 17 16:46:54 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 17 16:46:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 17 16:46:59 2021
Terminated at Sat Jul 17 17:02:28 2021
Results reported at Sat Jul 17 17:02:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+0730_weekly_bin337 166.117 7.51 442800001 443404801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1104.4+0730 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   842.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             325.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            934 sec.

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

