/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 23 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 = 7450
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1104.4+0730_daily_bin1582
RA = 166.117, Dec = 7.51
tmin = 649382401, tmax = 649641601
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='490983', job_status='RUN', time_executed='2021-09-03 06:40:42.272982', time_epoch_executed='1630676442.27' WHERE source_name='4FGL J1104.4+0730' and cadence='daily' and bin_id='1582'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/490983

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/490983/ft1_4FGL_J1104.4+0730_daily_bin1582.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/490983/ft2_4FGL_J1104.4+0730_daily_bin1582.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/490983/ft1_4FGL_J1104.4+0730_daily_bin1582.fits outfile=/scratch/kocevski/490983/ft1_filteredMKT_4FGL_J1104.4+0730_daily_bin1582.fits ra=166.117 dec=7.51 rad=12.0 tmin=649382401.0 tmax=649641601.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 3.84
user 2.57
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/490983/ft2_4FGL_J1104.4+0730_daily_bin1582.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/490983/ft1_filteredMKT_4FGL_J1104.4+0730_daily_bin1582.fits evtable="EVENTS" outfile="/scratch/kocevski/490983/ft1_filtered_4FGL_J1104.4+0730_daily_bin1582.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 5.37
user 0.35
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/490983/ft1_filtered_4FGL_J1104.4+0730_daily_bin1582.fits evtable="EVENTS" scfile=/scratch/kocevski/490983/ft2_4FGL_J1104.4+0730_daily_bin1582.fits sctable="SC_DATA" expcube=/scratch/kocevski/490983/ltcube_649382401_649641601_4FGL_J1104.4+0730_daily_bin1582.fits outfile=/scratch/kocevski/490983/expmap_649382401_649641601_4FGL_J1104.4+0730_daily_bin1582.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/490983/ltcube_649382401_649641601_4FGL_J1104.4+0730_daily_bin1582.fits
.....................!
real 195.33
user 185.31
sys 4.69

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/490983/ft1_filtered_4FGL_J1104.4+0730_daily_bin1582.fits scfile=/scratch/kocevski/490983/ft2_4FGL_J1104.4+0730_daily_bin1582.fits outfile=/scratch/kocevski/490983/cmap_649382401_649641601_4FGL_J1104.4+0730_daily_bin1582.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.54
user 0.39
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.1526       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .23831       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4928       1.0000         .10000E-03   10000.    
     9 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    50.184       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1849       1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.2268       1.0000         .10000E-01   10.000    
    15 'Prefactor '    1.1684       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=   6053.987     FROM MIGRAD    STATUS=CONVERGED    289 CALLS     1320 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    61.127       -.18148E-06** at limit **
   2  Prefactor     .10000E-03    31.460        .11532E-06** at limit **
   3  Prefactor     .10000E-03    12.201        .18717E-07** at limit **
   4  Prefactor     8.1522        4.5529       -.14862E-06   -.12405E-03
   5  Prefactor     .10000E-03    7.3627       -.27988E-05** at limit **
   6  Prefactor     .10000E-03    6.8853        .17416E-05** at limit **
   7  norm          .23912        .62327       -.41801E-06   -.24464E-02
   8  Prefactor     7.4864        8.1367        .21868E-06    .70792E-04
   9  norm          .10000E-03    .63657        .63078E-08** at limit **
  10  Prefactor     .10000E-03    7.9198        .18334E-05** at limit **
  11  norm          .10000E-03    6.3097       -.15330E-06** at limit **
  12  Prefactor     50.175        52.734       -.10650E-04    .14210E-03
  13  Prefactor     2.1850        1.8022       -.71420E-07   -.24948E-03
  14  Normalizat    1.2270        .20869        .22175E-05   -.86024E-05
  15  Prefactor     1.1681        .17483       -.34123E-06    .15857E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.1522
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.239118
  Prefactor  = 7.48643
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 50.1745
  Prefactor  = 2.18497
  Normalizat = 1.227
  Prefactor  = 1.16815
 **********
 **   18 **HESSE 
 **********

 FCN=   6053.987     FROM HESSE     STATUS=OK           178 CALLS     1498 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    61.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.1522        4.5579        .11912E-03   -1.5137    
   5  Prefactor     .10000E-03    7.4107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.9217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .23912        .62322        .83482E-04   -1.5610    
   8  Prefactor     7.4864        7.7845        .14651E-03   -1.5161    
   9  norm          .10000E-03    1.1027        .11974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.8993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.3225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     50.175        51.883        .56610E-04   -1.4290    
  13  Prefactor     2.1850        1.7963        .91599E-04   -1.5412    
  14  Normalizat    1.2270        .24371        .27752E-03   -.85772    
  15  Prefactor     1.1681        .20607        .24675E-03   -.87317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32856e-09
Minuit parameter uncertainties:
  1  9.24742e-06
  2  1.03424e-05
  3  4.6409e-06
  4  4.55805
  5  4.57332e-05
  6  4.11529e-05
  7  0.623237
  8  7.78551
  9  4.65098e-06
  10  3.89275e-05
  11  3.38007e-05
  12  51.93
  13  1.79632
  14  0.243935
  15  0.206212
Done.

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

Extracting fit parameters...

4FGL J1104.4+0730
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  3.893e-05  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.168e+00  2.062e-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.227e+00  2.439e-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: 6.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/490983/likelihoodResults_649382401_649641601_4FGL_J1104.4+0730_daily_bin1582.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) = 6053.9871708
delta logL = -0.000601230606662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6053.98656955
delta logL = 2.21752998186e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3289       1.0000          .0000       10.000    
     3 'Normalizat'    1.2270       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1682       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=   6053.987     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      258 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.803        .18142E-01** at limit **
   2  Index         1.8977        5.6338        .50000       -.48152E-06
   3  Normalizat    1.2270        .92254E-02    .27752E-03    .10315E-03
   4  Prefactor     1.1681        .80658E-02    .24675E-03    .10577E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.89765
  Normalizat = 1.227
  Prefactor  = 1.16815
 **********
 **   18 **HESSE 
 **********

 FCN=   6053.987     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      285 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    295.46        .22792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8977        5.5931        .50000       -.66934    
   3  Normalizat    1.2270        .31767E-01    .11101E-04   -.85772    
   4  Prefactor     1.1681        .27774E-01    .49350E-04   -.87317    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.66931e-08
Minuit parameter uncertainties:
  1  0.000542876
  2  1085.46
  3  0.0317678
  4  0.0277744
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/490983': 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) = 6053.98656879
delta logL = 7.82489223639e-07

Extracting fit parameters...

4FGL J1104.4+0730
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  5.429e-04  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  1.898e+00  1.085e+03  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.168e+00  2.777e-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:  1.227e+00  3.177e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/490983/cmap_HighResolution_649382401_649641601_4FGL_J1104.4+0730_daily_bin1582.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.24e-03', job_status='DONE', photon_flux_upper_limit='6.81e-08', time_completed='2021-09-03 06:49:45.618699', job_id='490983', GAL2='1.17', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630676985.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='7.82e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1582' AND source_name='4FGL J1104.4+0730' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 06:49:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 490983: <4FGL_J1104.4+0730_daily_bin1582> in cluster <slac> Done

Job <4FGL_J1104.4+0730_daily_bin1582> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 06:37:01 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 06:37:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 06:37:08 2021
Terminated at Fri Sep  3 06:49:46 2021
Results reported at Fri Sep  3 06:49:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+0730_daily_bin1582 166.117 7.51 649382401 649641601 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 :                                   521.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            765 sec.

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

