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


Performing analysis on: 4FGL_J1104.4+0730_weekly_bin399
RA = 166.117, Dec = 7.51
tmin = 480297601, tmax = 480902401
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='686151', job_status='RUN', time_executed='2021-07-17 16:49:50.358816', time_epoch_executed='1626565790.36' WHERE source_name='4FGL J1104.4+0730' and cadence='weekly' and bin_id='399'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/686151

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/686151/ft1_4FGL_J1104.4+0730_weekly_bin399.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/686151/ft2_4FGL_J1104.4+0730_weekly_bin399.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/686151/ft1_4FGL_J1104.4+0730_weekly_bin399.fits outfile=/scratch/kocevski/686151/ft1_filteredMKT_4FGL_J1104.4+0730_weekly_bin399.fits ra=166.117 dec=7.51 rad=12.0 tmin=480297601.0 tmax=480902401.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 6.18
user 5.89
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/686151/ft1_filtered_4FGL_J1104.4+0730_weekly_bin399.fits" evtable="EVENTS" scfile=/scratch/kocevski/686151/ft2_4FGL_J1104.4+0730_weekly_bin399.fits sctable="SC_DATA" outfile=/scratch/kocevski/686151/ltcube_480297601_480902401_4FGL_J1104.4+0730_weekly_bin399.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/686151/ft2_4FGL_J1104.4+0730_weekly_bin399.fits
.....................!
real 27.24
user 26.82
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/686151/ft1_filtered_4FGL_J1104.4+0730_weekly_bin399.fits evtable="EVENTS" scfile=/scratch/kocevski/686151/ft2_4FGL_J1104.4+0730_weekly_bin399.fits sctable="SC_DATA" expcube=/scratch/kocevski/686151/ltcube_480297601_480902401_4FGL_J1104.4+0730_weekly_bin399.fits outfile=/scratch/kocevski/686151/expmap_480297601_480902401_4FGL_J1104.4+0730_weekly_bin399.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/686151/ltcube_480297601_480902401_4FGL_J1104.4+0730_weekly_bin399.fits
.....................!
real 163.37
user 153.22
sys 3.97

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/686151/ft1_filtered_4FGL_J1104.4+0730_weekly_bin399.fits scfile=/scratch/kocevski/686151/ft2_4FGL_J1104.4+0730_weekly_bin399.fits outfile=/scratch/kocevski/686151/cmap_480297601_480902401_4FGL_J1104.4+0730_weekly_bin399.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.58
user 0.35
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/686151/ft1_filtered_4FGL_J1104.4+0730_weekly_bin399.fits scfile=/scratch/kocevski/686151/ft2_4FGL_J1104.4+0730_weekly_bin399.fits outfile=/scratch/kocevski/686151/cmap_HighResolution_480297601_480902401_4FGL_J1104.4+0730_weekly_bin399.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.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14824       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10429E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4874       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.179       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.5669       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .83233       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.0811       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.705       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1697       1.0000         .10000E-03   10000.    
    14 'Normalizat'    .97597       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.1135       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=   12964.82     FROM MIGRAD    STATUS=CONVERGED    333 CALLS     1428 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    17.185        .90712E-02** at limit **
   2  Prefactor     .11294E-03    21.466        .16864    ** at limit **
   3  Prefactor     .10000E-03    9.4970        .90712E-02** at limit **
   4  Prefactor     2.4868        2.1550        .64796E-02    .92160E-03
   5  Prefactor     11.179        5.6625        .29955E-02    .63050E-03
   6  Prefactor     .10000E-03    6.1626        .90712E-02** at limit **
   7  norm          1.5668        .40991        .80869E-02    .63682E-03
   8  Prefactor     .10000E-03    1.7317        .90712E-02** at limit **
   9  norm          .83237        .61380        .12560E-01    .23388E-03
  10  Prefactor     .10000E-03    17.075        .90712E-02** at limit **
  11  norm          5.0850        5.3774        .44593E-02    .45935E-02
  12  Prefactor     13.595        25.441        .27049E-02    .79193E-04
  13  Prefactor     4.1694        1.7540        .49344E-02   -.15085E-03
  14  Normalizat    .97601        .13738        .45865E-01    .11071E-03
  15  Prefactor     1.1136        .11750        .37094E-01    .10928E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Prefactor  = 0.000112941
  Prefactor  = 0.0001
  Prefactor  = 2.48678
  Prefactor  = 11.1787
  Prefactor  = 0.0001
  norm       = 1.56682
  Prefactor  = 0.0001
  norm       = 0.832371
  Prefactor  = 0.000100003
  norm       = 5.08502
  Prefactor  = 13.5954
  Prefactor  = 4.16944
  Normalizat = 0.976006
  Prefactor  = 1.11357
 **********
 **   18 **HESSE 
 **********

 FCN=   12964.82     FROM HESSE     STATUS=OK           196 CALLS     1624 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    17.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11294E-03    21.085        .17089       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.5717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4868        2.1480        .14773E-03   -1.5393    
   5  Prefactor     11.179        5.6845        .11982E-03   -1.5039    
   6  Prefactor     .10000E-03    6.4045        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5668        .40896        .35792E-04   -1.5458    
   8  Prefactor     .10000E-03    1.7378        .14622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .83237        .60051        .73606E-04   -1.5526    
  10  Prefactor     .10000E-03    17.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.0850        5.3709        .89187E-03   -1.5257    
  12  Prefactor     13.595        25.451        .10820E-03   -1.4970    
  13  Prefactor     4.1694        1.7539        .94013E-04   -1.5300    
  14  Normalizat    .97601        .15690        .27616E-03   -.93839    
  15  Prefactor     1.1136        .13432        .23255E-03   -.89034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22005e-10
Minuit parameter uncertainties:
  1  0.000662875
  2  0.0330489
  3  1.38667e-05
  4  2.14803
  5  5.68482
  6  3.19337e-05
  7  0.408962
  8  6.76742e-06
  9  0.600518
  10  0.000424778
  11  5.37141
  12  25.4716
  13  1.75394
  14  0.156972
  15  0.134364
Done.

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

Extracting fit parameters...

4FGL J1104.4+0730
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  4.248e-04  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.114e+00  1.344e-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:  9.760e-01  1.570e-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.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/686151/likelihoodResults_480297601_480902401_4FGL_J1104.4+0730_weekly_bin399.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) = 12964.8222179
delta logL = -0.000273485893558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12964.8219444
delta logL = -1.09739630716e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3686       1.0000          .0000       10.000    
     3 'Normalizat'    .97601       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1136       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   12964.82     FROM MIGRAD    STATUS=FAILED        93 CALLS      244 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10806E-03    105.32        .36285E-02** at limit **
   2  Index         2.5318        7.5248        .50000       -.12988E-04
   3  Normalizat    .97601        .72943E-02    .27616E-03   -.53517E-05
   4  Prefactor     1.1136        .65471E-02    .23255E-03   -.52602E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   12964.82     FROM SIMPLEX   STATUS=UNCHANGED    123 CALLS      367 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10806E-03    105.32        .83838E-03** at limit **
   2  Index         2.5318        7.5248        .83547E-03   -.12988E-04
   3  Normalizat    .97601        .72943E-02    .27138E-05   -.53517E-05
   4  Prefactor     1.1136        .65471E-02    .18304E-05   -.52602E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12964.82     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      455 TOTAL
                     EDM=   .45E-14    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .60526E-01    .32223E-01** at limit **
   2  Index         3.4298        5.9552        .50000        .97589E-07
   3  Normalizat    .97601        .45822E-03    .22093E-05    .11938E-03
   4  Prefactor     1.1136        .41131E-03    .18604E-05    .41554E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 3.42976
  Normalizat = 0.976005
  Prefactor  = 1.11357
 **********
 **   18 **HESSE 
 **********

 FCN=   12964.82     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      494 TOTAL
                     EDM=   .86E-14    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .28152E-01    .46034E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4298        6.2334        .50000       -.31945    
   3  Normalizat    .97601        .42061E-03    .44186E-06   -.93839    
   4  Prefactor     1.1136        .37956E-03    .37208E-06   -.89034    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.60677e-15
Minuit parameter uncertainties:
  1  1.64994e-05
  2  8.93583
  3  0.00042061
  4  0.000379558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/686151': 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) = 12964.8219421
delta logL = 2.3054144549e-06

Extracting fit parameters...

4FGL J1104.4+0730
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.650e-05  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  3.430e+00  8.936e+00  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.114e+00  3.796e-04  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:  9.760e-01  4.206e-04  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/686151/cmap_HighResolution_480297601_480902401_4FGL_J1104.4+0730_weekly_bin399.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.77e-03', job_status='DONE', photon_flux_upper_limit='4.89e-08', time_completed='2021-07-17 17:02:23.333786', job_id='686151', GAL2='1.11', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1626566543.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.31e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='399' AND source_name='4FGL J1104.4+0730' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul 17 17:02:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0168>
Subject: Job 686151: <4FGL_J1104.4+0730_weekly_bin399> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+0730_weekly_bin399 166.117 7.51 480297601 480902401 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 :                                   712.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             346.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            905 sec.

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

