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


Performing analysis on: 4FGL_J1104.4+0730_weekly_bin392
RA = 166.117, Dec = 7.51
tmin = 476064001, tmax = 476668801
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='686126', job_status='RUN', time_executed='2021-07-17 16:49:16.587217', time_epoch_executed='1626565756.59' WHERE source_name='4FGL J1104.4+0730' and cadence='weekly' and bin_id='392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/686126

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/686126/ft1_4FGL_J1104.4+0730_weekly_bin392.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/686126/ft2_4FGL_J1104.4+0730_weekly_bin392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/686126/ft1_4FGL_J1104.4+0730_weekly_bin392.fits outfile=/scratch/kocevski/686126/ft1_filteredMKT_4FGL_J1104.4+0730_weekly_bin392.fits ra=166.117 dec=7.51 rad=12.0 tmin=476064001.0 tmax=476668801.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.67
user 7.30
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/686126/ft1_filtered_4FGL_J1104.4+0730_weekly_bin392.fits" evtable="EVENTS" scfile=/scratch/kocevski/686126/ft2_4FGL_J1104.4+0730_weekly_bin392.fits sctable="SC_DATA" outfile=/scratch/kocevski/686126/ltcube_476064001_476668801_4FGL_J1104.4+0730_weekly_bin392.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/686126/ft2_4FGL_J1104.4+0730_weekly_bin392.fits
.....................!
real 33.66
user 33.07
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/686126/ft1_filtered_4FGL_J1104.4+0730_weekly_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/686126/ft2_4FGL_J1104.4+0730_weekly_bin392.fits sctable="SC_DATA" expcube=/scratch/kocevski/686126/ltcube_476064001_476668801_4FGL_J1104.4+0730_weekly_bin392.fits outfile=/scratch/kocevski/686126/expmap_476064001_476668801_4FGL_J1104.4+0730_weekly_bin392.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/686126/ltcube_476064001_476668801_4FGL_J1104.4+0730_weekly_bin392.fits
.....................!
real 192.07
user 186.73
sys 4.62

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/686126/ft1_filtered_4FGL_J1104.4+0730_weekly_bin392.fits scfile=/scratch/kocevski/686126/ft2_4FGL_J1104.4+0730_weekly_bin392.fits outfile=/scratch/kocevski/686126/cmap_476064001_476668801_4FGL_J1104.4+0730_weekly_bin392.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.60
user 0.44
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/686126/ft1_filtered_4FGL_J1104.4+0730_weekly_bin392.fits scfile=/scratch/kocevski/686126/ft2_4FGL_J1104.4+0730_weekly_bin392.fits outfile=/scratch/kocevski/686126/cmap_HighResolution_476064001_476668801_4FGL_J1104.4+0730_weekly_bin392.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.61
user 0.45
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/686126/ft1_filtered_4FGL_J1104.4+0730_weekly_bin392.fits', '/scratch/kocevski/686126/ft2_4FGL_J1104.4+0730_weekly_bin392.fits', expMap='/scratch/kocevski/686126/expmap_476064001_476668801_4FGL_J1104.4+0730_weekly_bin392.fits', expCube='/scratch/kocevski/686126/ltcube_476064001_476668801_4FGL_J1104.4+0730_weekly_bin392.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/686126/Model_4FGL_J1104.4+0730_weekly_bin392.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/686126/ft1_filtered_4FGL_J1104.4+0730_weekly_bin392.fits
Spacecraft file(s): /scratch/kocevski/686126/ft2_4FGL_J1104.4+0730_weekly_bin392.fits
Exposure map: /scratch/kocevski/686126/expmap_476064001_476668801_4FGL_J1104.4+0730_weekly_bin392.fits
Exposure cube: /scratch/kocevski/686126/ltcube_476064001_476668801_4FGL_J1104.4+0730_weekly_bin392.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/686126/Model_4FGL_J1104.4+0730_weekly_bin392.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) = 13773.003669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    84.027       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6163       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.4209       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.4064       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.396       1.0000         .10000E-03   10000.    
    11 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.533       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0044       1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.1085       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .96466       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.

 FCN=   13773.00     FROM MIGRAD    STATUS=CONVERGED    272 CALLS     1328 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     84.027        48.175        .10955E-02    .12416E-02
   2  Prefactor     .10000E-03    11.975        .90712E-02** at limit **
   3  Prefactor     .10000E-03    10.096        .90712E-02** at limit **
   4  Prefactor     1.6160        1.9328        .83256E-02    .14574E-02
   5  Prefactor     7.4214        4.5926        .36807E-02   -.22689E-02
   6  Prefactor     .10000E-03    1.9969        .90712E-02** at limit **
   7  norm          1.4065        .38940        .83260E-02   -.32680E-03
   8  Prefactor     .10000E-03    2.7174        .90712E-02** at limit **
   9  norm          .10000E-03    .30541        .22378E-01** at limit **
  10  Prefactor     12.396        12.151        .28443E-02    .43768E-03
  11  norm          .10000E-03    2.6299        .90712E-02** at limit **
  12  Prefactor     14.533        24.740        .26266E-02    .99438E-03
  13  Prefactor     1.0053        1.3751        .13505E-01    .19934E-02
  14  Normalizat    1.1084        .12751        .58087E-01   -.45234E-04
  15  Prefactor     .96470        .10721        .45824E-01   -.52138E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 84.0271
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.61597
  Prefactor  = 7.42142
  Prefactor  = 0.0001
  norm       = 1.40648
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.3956
  norm       = 0.0001
  Prefactor  = 14.5327
  Prefactor  = 1.00532
  Normalizat = 1.10841
  Prefactor  = 0.9647
 **********
 **   18 **HESSE 
 **********

 FCN=   13773.00     FROM HESSE     STATUS=OK           182 CALLS     1510 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     84.027        48.248        .43822E-04   -1.3872    
   2  Prefactor     .10000E-03    11.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.363        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6160        1.9145        .16986E-03   -1.5454    
   5  Prefactor     7.4214        4.6021        .14723E-03   -1.5163    
   6  Prefactor     .10000E-03    2.0167        .16186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.4065        .38809        .36838E-04   -1.5471    
   8  Prefactor     .10000E-03    2.7492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .84809        .12526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.396        12.149        .11377E-03   -1.5004    
  11  norm          .10000E-03    2.6466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.533        24.830        .10506E-03   -1.4945    
  13  Prefactor     1.0053        1.3365        .15316E-03   -1.5507    
  14  Normalizat    1.1084        .15134        .25688E-03   -.89482    
  15  Prefactor     .96470        .12729        .23785E-03   -.93916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04953e-08
Minuit parameter uncertainties:
  1  48.2708
  2  5.9536e-05
  3  5.54913e-06
  4  1.91457
  5  4.60236
  6  4.93537e-06
  7  0.388095
  8  1.85566e-06
  9  8.22595e-08
  10  12.1511
  11  1.45347e-05
  12  24.8476
  13  1.33653
  14  0.1514
  15  0.127326
Done.

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

Extracting fit parameters...

4FGL J1104.4+0730
   Spectrum: PowerLaw
262    Prefactor:  1.240e+01  1.215e+01  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:  9.647e-01  1.273e-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:  1.108e+00  1.514e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.50
Ra Dec: 166.117 7.510
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 2.30e-08 +/- 2.25e-08
Energy Flux (Fixed Index): 8.17e-06 +/- 8.01e-06

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

Saving results to:
/scratch/kocevski/686126/likelihoodResults_476064001_476668801_4FGL_J1104.4+0730_weekly_bin392.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) = 13772.9928619
delta logL = 0.00819019948722

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13772.9909303
delta logL = 0.0101218028394

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.234       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2584       1.0000          .0000       10.000    
     3 'Normalizat'    1.1104       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96349       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=   13772.99     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      247 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.235        14.213        .11011E-03   -.28931E-03
   2  Index         2.2582        .59452        .10190E-01   -.14106E-03
   3  Normalizat    1.1104        .14518        .25667E-03    .29490E-03
   4  Prefactor     .96349        .12672        .23798E-03    .38485E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2348
  Index      = 2.25817
  Normalizat = 1.11041
  Prefactor  = 0.963487
 **********
 **   18 **HESSE 
 **********

 FCN=   13772.99     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.235        13.857        .44043E-05   -1.4980    
   2  Index         2.2582        .57960        .40761E-03   -.58041    
   3  Normalizat    1.1104        .14526        .10267E-04   -.89418    
   4  Prefactor     .96349        .12678        .95190E-05   -.93957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16697e-10
Minuit parameter uncertainties:
  1  13.8603
  2  0.581472
  3  0.145307
  4  0.126822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/686126': 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) = 13772.9909302
delta logL = 0.0101218473155

Extracting fit parameters...

4FGL J1104.4+0730
   Spectrum: PowerLaw
262    Prefactor:  1.323e+01  1.386e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.258e+00  5.815e-01  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:  9.635e-01  1.268e-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:  1.110e+00  1.453e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.52
Ra Dec: 166.117 7.510
Photon Index (Free Index): 2.26 +/- 0.58
Photon Flux (Free Index): 2.15e-08 +/- 2.39e-08
Energy Flux (Free Index): 8.71e-06 +/- 9.36e-06

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/686126/cmap_HighResolution_476064001_476668801_4FGL_J1104.4+0730_weekly_bin392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.51e-03', comment='SUCCESS', photon_flux='2.30e-08', energy_flux2='8.71e-06', photon_flux_error='2.25e-08', dlogl='1.01e-02', energy_flux='8.17e-06', photon_flux2='2.15e-08', job_status='DONE', time_completed='2021-07-17 17:03:30.568923', photon_index_error2='0.58', photon_index2='2.26', ts='1.50', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='7.16e-08', energy_flux_error2='9.36e-06', EG='1.11', time_epoch_completed='1626566610.57', return_code='0', job_id='686126', GAL2='0.96', EG2='1.11', return_code2='0', energy_flux_error='8.01e-06', photon_flux_error2='2.39e-08', ts2='1.52', photon_index='2.34' WHERE bin_id='392' AND source_name='4FGL J1104.4+0730' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul 17 17:03:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 686126: <4FGL_J1104.4+0730_weekly_bin392> in cluster <slac> Done

Job <4FGL_J1104.4+0730_weekly_bin392> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Jul 17 16:47:16 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 17 16:49:08 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:49:08 2021
Terminated at Sat Jul 17 17:03:31 2021
Results reported at Sat Jul 17 17:03:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+0730_weekly_bin392 166.117 7.51 476064001 476668801 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 :                                   844.01 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             341.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            975 sec.

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

