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


Performing analysis on: 4FGL_J1104.4+0730_daily_bin1193
RA = 166.117, Dec = 7.51
tmin = 548553601, tmax = 548812801
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='484285', job_status='RUN', time_executed='2021-09-03 06:23:57.059034', time_epoch_executed='1630675437.06' WHERE source_name='4FGL J1104.4+0730' and cadence='daily' and bin_id='1193'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484285

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484285/ft1_4FGL_J1104.4+0730_daily_bin1193.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484285/ft2_4FGL_J1104.4+0730_daily_bin1193.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484285/ft1_4FGL_J1104.4+0730_daily_bin1193.fits outfile=/scratch/kocevski/484285/ft1_filteredMKT_4FGL_J1104.4+0730_daily_bin1193.fits ra=166.117 dec=7.51 rad=12.0 tmin=548553601.0 tmax=548812801.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.65
user 3.24
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/484285/ft1_filtered_4FGL_J1104.4+0730_daily_bin1193.fits" evtable="EVENTS" scfile=/scratch/kocevski/484285/ft2_4FGL_J1104.4+0730_daily_bin1193.fits sctable="SC_DATA" outfile=/scratch/kocevski/484285/ltcube_548553601_548812801_4FGL_J1104.4+0730_daily_bin1193.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/484285/ft2_4FGL_J1104.4+0730_daily_bin1193.fits
.....................!
real 16.64
user 16.11
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484285/ft1_filtered_4FGL_J1104.4+0730_daily_bin1193.fits evtable="EVENTS" scfile=/scratch/kocevski/484285/ft2_4FGL_J1104.4+0730_daily_bin1193.fits sctable="SC_DATA" expcube=/scratch/kocevski/484285/ltcube_548553601_548812801_4FGL_J1104.4+0730_daily_bin1193.fits outfile=/scratch/kocevski/484285/expmap_548553601_548812801_4FGL_J1104.4+0730_daily_bin1193.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/484285/ltcube_548553601_548812801_4FGL_J1104.4+0730_daily_bin1193.fits
.....................!
real 195.50
user 186.86
sys 4.81

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/484285/ft1_filtered_4FGL_J1104.4+0730_daily_bin1193.fits scfile=/scratch/kocevski/484285/ft2_4FGL_J1104.4+0730_daily_bin1193.fits outfile=/scratch/kocevski/484285/cmap_548553601_548812801_4FGL_J1104.4+0730_daily_bin1193.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.96
user 0.39
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484285/ft1_filtered_4FGL_J1104.4+0730_daily_bin1193.fits scfile=/scratch/kocevski/484285/ft2_4FGL_J1104.4+0730_daily_bin1193.fits outfile=/scratch/kocevski/484285/cmap_HighResolution_548553601_548812801_4FGL_J1104.4+0730_daily_bin1193.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 1.14
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.987       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14356E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14433E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6477       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3039       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4592       1.0000         .10000E-03   10000.    
     7 'norm      '    1.6042       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11850E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.413       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11842E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7228       1.0000         .10000E-03   10000.    
    14 'Normalizat'    1.7118       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .71999       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=   9130.150     FROM MIGRAD    STATUS=CONVERGED    312 CALLS     1354 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.321        54.836        .16938E-02   -.56784E-05
   2  Prefactor     .10000E-03    13.336        .90712E-02** at limit **
   3  Prefactor     .10000E-03    4.0388        .90712E-02** at limit **
   4  Prefactor     4.6462        3.3357        .46671E-02    .63176E-03
   5  Prefactor     3.3176        7.1716        .55682E-02    .98294E-03
   6  Prefactor     3.4780        4.1059        .54360E-02    .10726E-03
   7  norm          1.6041        .52358        .81693E-02    .17872E-03
   8  Prefactor     .10000E-03    3.6348        .65909E-01** at limit **
   9  norm          .10000E-03    .41103        .33096E-01** at limit **
  10  Prefactor     24.340        19.989        .20268E-02   -.23154E-04
  11  norm          .10000E-03    9.1506        .90712E-02** at limit **
  12  Prefactor     .10000E-03    9.0339        .90712E-02** at limit **
  13  Prefactor     1.7228        1.4716        .80000E-02    .36453E-03
  14  Normalizat    1.7117        .17157        .53013E-01   -.45325E-05
  15  Prefactor     .72006        .14295        .67573E-01    .34340E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.3213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.64624
  Prefactor  = 3.31762
  Prefactor  = 3.47803
  norm       = 1.60411
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 24.3403
  norm       = 0.000100001
  Prefactor  = 0.000100005
  Prefactor  = 1.72283
  Normalizat = 1.71167
  Prefactor  = 0.720056
 **********
 **   18 **HESSE 
 **********

 FCN=   9130.150     FROM HESSE     STATUS=OK           188 CALLS     1542 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.321        54.927        .67750E-04   -1.4519    
   2  Prefactor     .10000E-03    13.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.0411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.6462        3.3344        .13904E-03   -1.5277    
   5  Prefactor     3.3176        7.1934        .22273E-03   -1.5344    
   6  Prefactor     3.4780        4.0904        .20150E-03   -1.5335    
   7  norm          1.6041        .49735        .36213E-04   -1.5455    
   8  Prefactor     .10000E-03    8.9656        .33522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .65093        .11711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.340        20.010        .81073E-04   -1.4721    
  11  norm          .10000E-03    9.3663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.0871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.7228        1.4605        .10381E-03   -1.5445    
  14  Normalizat    1.7117        .20160        .23437E-03   -.71992    
  15  Prefactor     .72006        .16717        .29899E-03   -1.0275    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37974e-09
Minuit parameter uncertainties:
  1  55.0063
  2  6.04632e-06
  3  2.28934e-06
  4  3.3345
  5  7.19523
  6  4.09077
  7  0.49735
  8  0.00028967
  9  9.20836e-08
  10  20.0156
  11  0.000172292
  12  0.000425711
  13  1.4605
  14  0.201699
  15  0.167289
Done.

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

Extracting fit parameters...

4FGL J1104.4+0730
   Spectrum: PowerLaw
262    Prefactor:  2.434e+01  2.002e+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:  7.201e-01  1.673e-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.712e+00  2.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.03
Ra Dec: 166.117 7.510
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 4.52e-08 +/- 3.71e-08
Energy Flux (Fixed Index): 1.60e-05 +/- 1.32e-05

TS (Fixed Index): 2.03
Ra Dec: 166.117 7.510
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/484285/likelihoodResults_548553601_548812801_4FGL_J1104.4+0730_daily_bin1193.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) = 9129.57438499
delta logL = 0.57535152564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9129.57181082
delta logL = 0.577925700005

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.169       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1557       1.0000          .0000       10.000    
     3 'Normalizat'    1.6641       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74858       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=   9129.572     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      316 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.168        27.404        .12565E-03   -.53382E-03
   2  Index         3.1561        1.4610        .56603E-02   -.11979E-03
   3  Normalizat    1.6639        .19961        .23688E-03   -.31556E-03
   4  Prefactor     .74869        .17144        .29368E-03   -.27918E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1682
  Index      = 3.15615
  Normalizat = 1.66389
  Prefactor  = 0.748695
 **********
 **   18 **HESSE 
 **********

 FCN=   9129.572     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.168        15.615        .50260E-05   -1.5070    
   2  Index         3.1561        .84008        .22641E-03   -.37769    
   3  Normalizat    1.6639        .19694        .47376E-04   -.73272    
   4  Prefactor     .74869        .16858        .11747E-04   -1.0165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78201e-10
Minuit parameter uncertainties:
  1  15.6215
  2  0.84472
  3  0.197029
  4  0.168695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484285': 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) = 9129.57180987
delta logL = 0.577926646863

Extracting fit parameters...

4FGL J1104.4+0730
   Spectrum: PowerLaw
262    Prefactor:  1.017e+01  1.562e+01  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  3.156e+00  8.447e-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:  7.487e-01  1.687e-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.664e+00  1.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.25
Ra Dec: 166.117 7.510
Photon Index (Free Index): 3.16 +/- 0.84
Photon Flux (Free Index): 8.00e-08 +/- 5.44e-08
Energy Flux (Free Index): 1.49e-05 +/- 9.87e-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/484285/cmap_HighResolution_548553601_548812801_4FGL_J1104.4+0730_daily_bin1193.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.27e-03', comment='SUCCESS', photon_flux='4.52e-08', energy_flux2='1.49e-05', photon_flux_error='3.71e-08', dlogl='5.78e-01', energy_flux='1.60e-05', photon_flux2='8.00e-08', job_status='DONE', time_completed='2021-09-03 06:36:47.546387', photon_index_error2='0.84', photon_index2='3.16', ts='2.03', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='9.87e-06', EG='1.71', time_epoch_completed='1630676207.55', return_code='0', job_id='484285', GAL2='0.75', EG2='1.66', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='5.44e-08', ts2='3.25', photon_index='2.34' WHERE bin_id='1193' AND source_name='4FGL J1104.4+0730' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 06:36:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 484285: <4FGL_J1104.4+0730_daily_bin1193> in cluster <slac> Done

Job <4FGL_J1104.4+0730_daily_bin1193> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 06:21:02 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 06:21:30 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:21:30 2021
Terminated at Fri Sep  3 06:36:57 2021
Results reported at Fri Sep  3 06:36:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1104.4+0730_daily_bin1193 166.117 7.51 548553601 548812801 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 :                                   672.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            955 sec.

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

